<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>注册界面</title>
<link href="css/basic.css" rel="stylesheet" type="text/css" />
<style type="text/css">
td {
	width: 200px;
	text-align: left
}
</style>
<script type="text/javascript" src="js/register.js"></script>
</head>
<body style="text-align: center; background-color: snow">
	<a class="right" href="login.jsp">返回登录页面</a>
	<h1>请填写您的信息</h1>
	<form action="UserEdit" method="post" onsubmit="return checkForm()">
		<table align="center">
			<tr>
				<td class="r">名称:<input type="text" name="name"
					onblur="checkName(this.value)" />
				<td>*<span id="name2"></span></td>
			</tr>
			<tr>
				<td class="r">密码:<input id="pw1" type="password" 
					onblur="checkPassword()" /></td>
				<td>*</td>
			</tr>
			<tr>
				<td class="r">确认密码:<input id="pw2" type="password" name="password"
					onblur="checkPassword()" /></td><td>*<span id="password2"></span></td>
			</tr>
			<tr>
				<td class="r">邮箱:<input type="text" name="email"
					onblur="checkEmail(this.value)" /></td>
				<td>*<span id="email2"></span></td>
			</tr>
			<tr>
				<td class="r">性别:男<input type="radio" name="gender"
					onchange="checkSex()" value="男"/>&emsp;
					女<input type="radio" name="gender" value="女"
					onchange="checkSex()"></td>
				<td>&nbsp;<span id="sex2"></span></td>
			</tr>
			<tr>
				<td class="r">年龄:<input type="text" name="age"
					onblur="checkAge(this.value)" /></td>
				<td>&nbsp;<span id="age2"></span></td>
			</tr>
			<tr>
				<td class="r"><input type="submit" name="submit" />&emsp;</td>
				<td></td>
			</tr>
		</table>
	</form>
<p>${state1 }</p>

</body>
</html>